<template>
	<view class="scroll-view_H">
		<popup-layer ref="popupRef" :direction="'left'">
			<view style="position:absolute;margin-left: 2%;margin-top:15rpx;" @tap="chaxunclose()">
				<image :src="srcfanhui" class="item-icon-sys" mode=""></image>
			</view>
			<view style="height: 93%;font-size: 30rpx;">
				<view class="box" style="text-align: center;">
					<view>筛选</view>
				</view>
				<view class="box">
					<view class="popupspan">资产编码:</view>
					<view class="popupinput"><input type="text" v-model="inputzcbm" placeholder="请输入资产编码" placeholder-class="inputff"/></view>
				</view>
				<view class="box">
					<view class="popupspan">资产名称:</view>
					<view class="popupinput">
						
							<input type="text"  v-model="inputzcmc" placeholder="请输入资产名称" placeholder-class="inputff"/>
						
					</view>
				</view>
				<view class="box">
					<view class="popupspan">资产类别:</view>
					<view class="popupinput">
						<view @tap="focusshow($event)" data-id="zclb" class="inputff">{{inputzclb}}</view>
						<!--<input type="text" v-model="inputzclb" placeholder="请输入资产类别" placeholder-class="inputff" @focus="focusshow($event)" data-Id="zclb"/>
				-->
				</view>
				</view>
	
				<view class="box">
					<view class="popupspan">使用部门:</view>
					<view class="popupinput">
						<view @tap="focusshow($event)" data-id="sybm" class="inputff">{{inputsybm}}</view>
						<!--<input type="text" v-model="inputsybm" placeholder="请输入使用部门" placeholder-class="inputff" @focus="focusshow($event)" data-Id="sybm"/>-->
						</view>
				</view>
				<view class="box">
					<view class="popupspan">使用人:</view>
					<view class="popupinput">
						<view @tap="focusshow($event)" data-id="syr" class="inputff">{{inputsyr}}</view>
						<!--<input type="text" v-model="inputsyr" placeholder="请输入使用人" placeholder-class="inputff" @focus="focusshow($event)" data-Id="syr"/>-->
						</view>
				</view>
			</view>
				<view class="box" style="border-bottom: 0px #bfbfbf solid;border-top: 1rpx #bfbfbf solid;padding-top: 5rpx;padding-bottom: 5rpx;">
					<view class="popupspan" style="width: 49.5%;text-align: center;border-right: 1px #bfbfbf solid;padding-left: 0rpx;font-size: 28rpx;" @tap="chaxunreset()">重置</view>
					<view class="popupinput" style="width: 49.5%;text-align: center;color: #6D8AF9;padding-right: 0rpx;" @tap="chaxunok()">确定</view>
				</view>
		        
				
		</popup-layer>
		<view style="height: 80rpx;background-color: #FFFFFF;">
			<view style="width:200rpx;font-size: 29rpx;height: 80rpx;line-height: 80rpx;color: #bfbfbf;">
				<view style="width: 300rpx;height: 80rpx;line-height: 80rpx;padding-left: 20rpx;">小计:{{SumCount}}</view>
			</view>
			
		</view>
		
		<view style="position:absolute;margin-left: 80%;margin-top:-60rpx;width: 120rpx;" @tap="sxchaxun()">
			<image :src="srcsys" class="item-icon-sys" style="float: left;" mode=""></image>
			<view style="float: left;font-size: 28rpx;color: #bfbfbf;">筛选</view>
		</view>
		
		<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" :down="downOption" :up="upOption" @up="upCallback">
	<view class="" v-for="good in list" :key="good.id">
		<view class="Item">
			<view class="item-link item-content">
				<view class="item-inner" :data-id="good.Id">
					
					<view v-if="good.Using_Document==''">
						<view class="item-text">
							<view class="ispan" style="width: 88%">资产编码：{{good.资产编码}}</view>
							<view class="ispan" style="width: 5%"><checkbox class="ispancheck" @tap="isanselectAsset($event)" :data-id="good.Id" :data-ucode="good.Using_Document"></checkbox></view>
						</view>
					</view>
					<view v-else-if="good.Using_Document==DocumentCode">
						<view class="item-text">
							<view class="ispan" style="width: 88%">资产编码：{{good.资产编码}}</view>
							<view class="ispan" style="width: 5%"><checkbox class="ispancheck" checked="true" @tap="isanselectAsset($event)" :data-id="good.Id" :data-ucode="good.Using_Document"></checkbox></view>
						</view>
					</view>
					<view v-else-if="good.Using_Document!=DocumentCode">
						<view class="item-text">
							<view class="ispan" style="width: 88%">资产编码：{{good.资产编码}}</view>
							<view class="ispan" style="width: 5%;">
								<view class="ispancheck" style="background-color: #e6e6e6;width: 45upx;height: 45upx;"
								@tap="isanselectAssetNo($event)" :data-id="good.Id" :data-ucode="good.Using_Document"></view>
								<!--
								<checkbox class="ispancheck nocheck" style="background-color: #bebebe;" disabled="disabled"  @tap="isanselectAsset($event)" :data-Id="good.Id" :data-ucode="good.Using_Document"></checkbox>
								-->
								</view>
						</view>
					</view>
					<view class="item-text">
					<view class="ispan">资产名称:</view><view class="span">{{good.资产名称}}</view>
					</view>
					<view class="item-text">
					<view class="ispan">资产类别:</view><view class="span">{{good.资产类别}}</view>
					</view>
					<view class="item-text">
					<view class="ispan">使用部门:</view><view class="span">{{good.使用部门}}</view>
					</view>
					<view class="item-text">
					<view class="ispan">数量:</view><view class="span">1</view>
					</view>
					<view class="item-text">
					<view class="ispan">规格型号:</view><view class="span">{{good.规格型号}}</view>
					</view>
				<view class="item-text">
				<view class="ispan">品牌:</view><view class="span">{{good.品牌}}</view>
				</view>
				</view>
				
			</view>
		</view>
	</view>
	</mescroll-body>
	
	<tki-tree ref="tkitree" :selectParent="selectParent" :multiple="multiple" :range="treelist" :foldAll="flod" rangeKey="Name" :title="title"
	 @confirm="treeConfirm" @cancel="treeCancel" :selectvalue="selectvalue" @KeyInput="treekeyinput"></tki-tree>
	</view>
</template>

<script>
	// 引入mescroll-mixins.js
	import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
	import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
	import popupLayer from "@/components/popup-layer/popup-layer.vue";
	import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
	import MescrollMoreItemMixin from "@/components/mescroll-uni/mixins/mescroll-more-item.js";
	import tkiTree from '@/components/tki-tree-asset/tki-tree.vue';
	var self;
	export default {
		mixins: [MescrollMixin], // 使用mixin
		components: {
			MescrollBody
			,
			MescrollUni
			,
			popupLayer
			,
			tkiTree
		},
		data() {
			return {
				// 下拉刷新的配置(可选, 绝大部分情况无需配置)
				downOption: {
					auto:true,
					native: false,
					beforeEndDownScroll:1000,
					textInOffset:"下拉刷新",
					textOutOffset:"释放刷新",
					textLoading:"加载中..."
				},upOption:{
					auto:true, // 不自动加载
					// page: {
					// 	num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
					// 	size: 10 // 每页数据的数量
					// },
					noMoreSize: 4, //如果列表已无数据,可设置列表的总数量要大于半页才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看; 默认5
					empty:{
						tip: '~ 暂无数据 ~'
					},
					src: "../../static/images/totop.png",
					offset: 50,
					duration: 300,
					zIndex: 9990,
					right: 20,
					bottom: 120,
					safearea: false,
					width: 72,
					radius: "50%",
					left: null,
				},
				list:[],
				loginName: "",
				searchType:"",
				SumCount:"0",
				srcsys: "../../static/images/icon-sxuan.png",
				srcfanhui: "../../static/images/icon-fanhui-you.png",
				inputgjz:"",
				inputzcbm:"",
				inputzcmc:"",
				inputzclb:"请选择资产类别 >",
				inputglbm:"请选择管理部门 >",
				inputzrr:"请选择责任人 >",
				inputsybm:"请选择使用部门 >",
				inputsyr:"请选择使用人 >",	
				inputzclbid:"",
				inputglbmid:"",
				inputzrrid:"",
				inputsybmid:"",
				inputsyrid:"",	
				treelist: [],
				multiple: false,
				selectParent: true,
				flod: false,
				title:"选择资产类别",
				selectvalue:"",
				showTreeValue:false,
				ShowQueryValue:false,
				deleteids:"",
				DocumentId:"",
				DocumentCode:"",
				MoveinDeaprtmentId:"",
				MoveinMenId:"",
				RefDate:""
			}
		},
		onBackPress(options) {
			if(this.showTreeValue==true){
				this.showTreeValue=false;
				this.$refs.tkitree._hide();
				return true;
			}else{
				if(this.ShowQueryValue==true){
					this.ShowQueryValue=false;
					this.$refs.popupRef.close();
					return true;
				}else{
					return false;
				}
			}			
		}, 
		onNavigationBarButtonTap(val) {
			//return;
			if(val.index==0){//搜索
				console.log(this.deleteids);
				if(self.deleteids==""){
					uni.showToast({
						icon: 'none',
						title: '请选择添加资产'
					});
				}else{
					const _newadd =self.deleteids.split(",");
					const _add=[];
					for(var i=0;i<_newadd.length;i++){
						_add.push(_newadd[i]);
					}
					//self.deleteids="";
					//Asset_Borrow_Save_Model
					
					uni.request({
						url:uni.getStorageSync("localurl")+'//Documents/Asset_Move_Add_Detail_Save',
						data: {
							_Added: _add,
							_r: "dde7a3ef-2a1a-4494-880f-7c4f56dd0f9e",
							_Removed: [],
							DocumentId:self.DocumentId,
							MoveinDeaprtmentId:self.MoveinDeaprtmentId,
							MoveinMenId:self.MoveinMenId,
							 RefDate:self.RefDate,
						},
												method:"POST",
						success: (res) => {
							if (res.data.successed == true) {
								uni.navigateTo({
									url: '../asset/documentedit?act=edit&document_id=' + self.DocumentId
								});
							}
						},
						fail: () => {
							//  请求失败,隐藏加载状态
							this.mescroll.endErr()
						}
					})
				}
				
			}
			
		    },
		methods: {
			/*下拉刷新的回调, 有三种处理方式:*/
			downCallback() {
				this.list=[];
				this.mescroll.resetUpScroll();
			
			},
			/*下拉加载的回调*/
			upCallback(page) {
				self = this;
				if (this.loginName == "") {
					const listdata = uni.getStorageSync("userinfo");
					self.loginName = listdata.LoginName;
				}
				let pageNum = page.num; // 页码, 默认从1开始
				let pageSize = page.size; // 页长, 默认每页10条
				uni.request({												
					url:uni.getStorageSync("localurl")+'/Documents/Asset_Change_Add_Detail_Get_List',
					data: {
						pageSize: pageSize,
						_r: "661aea12-cb28-4c92-9a78-66c519a630c9",
						pageIndex: pageNum-1,
						DocumentId:this.DocumentId,
						"KeyCode":this.inputgjz,
						"-资产编码":this.inputzcbm,
						"-资产名称":this.inputzcmc,
						"AssetTypeId":this.inputzclbid,
						"UsingDepartmentId":this.inputsybmid,
						"UsingMenId":this.inputsyrid,
					},
					success: (res) => {
						//console.log(res);
						if (res.data.successed == true) {
							var mydata = [];
							self.SumCount=res.data.total;
							var newrows = JSON.parse(res.data.rows);
							for (var i = 0; i < newrows.length; i++) {
								var valueRows = newrows[i].toString().split(',');
								var datarow = {};
								for (var j = 0; j < res.data.columns.length; j++) {
									//alert(_data.columns[j].字段名)
									datarow[res.data.columns[j].字段名] = valueRows[j];
								}
								mydata.push(datarow);
								
							}
							console.log(mydata);
							//this.productList = mydata;
							// 接口返回的当前页数据列表 (数组)
							let curPageData = mydata; 
							// 接口返回的当前页数据长度 (如列表有26个数据,当前页返回8个,则curPageLen=8)
							let curPageLen = mydata.length; 
							// 接口返回的总页数 (如列表有26个数据,每页10条,共3页; 则totalPage=3)
							let totalPage = res.data.total/page.size; 
							// 接口返回的总数据量(如列表有26个数据,每页10条,共3页; 则totalSize=26)
							let totalSize = res.data.total; 
							// 接口返回的是否有下一页 (true/false)
							let hasNext =false; 
							 //设置列表数据
							 //console.log(curPageData);
							 if(page.num == 1) this.list = []; //如果是第一页需手动置空列表
							 this.list = this.list.concat(curPageData); //追加新数据
							 
							 // 请求成功,隐藏加载状态
							 //方法一(推荐): 后台接口有返回列表的总页数 totalPage
							 this.mescroll.endByPage(curPageLen, totalPage); 
							 
							 // 如果数据较复杂,可等到渲染完成之后再隐藏下拉加载状态: 如
							 // 建议使用setTimeout,因为this.$nextTick某些情况某些机型不触发
							 setTimeout(()=>{
							 	this.mescroll.endSuccess(curPageLen)
							 },20)
						
														 
							}
						},
						fail: () => {
								//  请求失败,隐藏加载状态
								this.mescroll.endErr()
							}
						})
				// 此处仍可以继续写其他接口请求...
				// 调用其他方法...									
			},
			queryasset(){
				uni.request({
					url:uni.getStorageSync("localurl")+'//Report/Asset_Detail',
					data: {
						pageSize: 5,
						_r: "813efd8e-1ac0-4cc8-8c35-3d502f680353",
						pageIndex: 0,
						"资产状态":this.searchType
					},
					success: (res) => {
						console.log(res);
						if (res.data.successed == true) {
							//sumCount
							//self.list=res.data;
						}
					},
					fail: () => {
						//  请求失败,隐藏加载状态
						this.mescroll.endErr()
					}
				})
			},
			isanAsset(e){
				//console.log(e.currentTarget.dataset.id);
				uni.navigateTo({
					url: '../asset/asset?Id=' + e.currentTarget.dataset.id,
				});
			},
			sxchaxun(){
				this.ShowQueryValue=true;
				 this.$refs.popupRef.show();
			},
			chaxunclose(){
				this.ShowQueryValue=false;
				this.$refs.popupRef.close();
			},
			chaxunreset(){
				this.inputzcbm="";
				this.inputzcmc="";
				this.inputzclb="请选择资产类别";
				this.inputglbm="请选择管理部门";
				this.inputzrr="请选择责任人";
				this.inputsybm="请选择使用部门";
				this.inputsyr="请选择使用人";
				this.inputzclbid="";
				this.inputglbmid="";
				this.inputzrrid="";
				this.inputsybmid="";
				this.inputsyrid="";
				this.ShowQueryValue=false;
				this.$refs.popupRef.close();
				this.downCallback();
			},
				chaxunok(){
					this.ShowQueryValue=false;
					this.$refs.popupRef.close();
					this.downCallback();
				},
				focusshow(e){
					this.selectvalue=e.currentTarget.dataset.id;
					this.treelist=[];
					this.$refs.tkitree.oldtreeList="";
					this.$refs.tkitree.servalue="";
					
					if(e.currentTarget.dataset.id=="zclb"){
						this.showTree();
						this.title="请选择资产类别";
						this.loadAssetType();
					}else if(e.currentTarget.dataset.id=="glbm"){
						this.showTree();
						this.title="请选择管理部门";
						this.loadDepartment();
					}else if(e.currentTarget.dataset.id=="sybm"){
						this.showTree();
						this.title="请选择使用部门";
						this.loadDepartment();
					}else if(e.currentTarget.dataset.id=="zrr"){
						
						if(this.inputglbmid=="" || this.inputglbmid==null){
							uni.showToast({
								icon: 'none',
								title: '请选择管理部门'
							});
							return;
						}else{
							this.showTree();
							this.title="请选择责任人";
							this.loadglbmProfile();
						}
					}else if(e.currentTarget.dataset.id=="syr"){
						if(this.inputsybmid=="" || this.inputsybmid==null){
							uni.showToast({
								icon: 'none',
								title: '请选择使用部门'
							});
							return;
						}else{
							this.showTree();
							this.title="请选择使用人";
							this.loadsybmProfile();
						}
					}
					
					
				},
				// 确定回调事件
				treeConfirm(e) {
					this.showTreeValue=false;
					if(this.selectvalue=="zclb"){
						this.inputzclb=e[0].Name;
						this.inputzclbid=e[0].Id;
					}else if(this.selectvalue=="glbm"){
						this.inputglbm=e[0].Name;
						this.inputglbmid=e[0].Id;
					}else if(this.selectvalue=="sybm"){
						this.inputsybm=e[0].Name;
						this.inputsybmid=e[0].Id;
					}else if(this.selectvalue=="zrr"){
						this.inputzrr=e[0].Name;
						this.inputzrrid=e[0].Id;
					}else if(this.selectvalue=="syr"){
						this.inputsyr=e[0].Name;
						this.inputsyrid=e[0].Id;
					}
					
				},
				// 取消回调事件
				treeCancel(e) {
					this.showTreeValue=false;
					console.log(e)
				},	
				treekeyinput(value){
					let bmid="";
					if(this.selectvalue=="zrr"){
						bmid=this.inputglbmid;
					}
					if(this.selectvalue=="syr"){
						bmid=this.inputsybmid;
					}
					
					this.request_tool({
						url:'/console/app/v1/operator/pageData',
						type:'POST',
						data:{"orgId":bmid,"userName":value,"current":0,"pageSize":100}
					}).then(res => {
							//console.error(res);
							if(res!=undefined){
							if (res.data.code == 2000) {
								//console.log(res.data.data);
								//self.treelist= res.data.data;
								let newtreelist=[];
								for(var i=0;i<res.data.data.records.length;i++){
									let resitem= res.data.data.records[i];
									let treeitem={
										id:resitem.id,
										label:resitem.userName,
										isEnabled:resitem.isEnabled,
										checked:false,
										children:[],
									};
									newtreelist.push(treeitem);
								}
								self.treelist=newtreelist;
								setTimeout(function () {
								  uni.hideNavigationBarLoading();
								}, 2000);
								this.$refs.tkitree.oldtreeList="";
								this.$refs.tkitree.servalue=value;
								this.showTree();
								//this.model = res.data.model;
							}else{
								uni.showToast({
									icon: 'none',
									title: res.data.msg
								});							
							}
							}
							}).catch(err => {
					  console.error(err);
					  
					});
					
					//this.treelist=newtreeList;
				},
				// 显示树形选择器
				showTree() {
					this.showTreeValue=true;
					this.$refs.tkitree._show();
				},
				loadAssetType(){
					self=this;
					
					uni.showNavigationBarLoading();
					uni.request({
						url:uni.getStorageSync("localurl")+'//Common/TreeSelector', //仅为示例，并非真实接口地址。
						data: {
							_Type: "AmsAssetTypes",
						},
						success: res2 => {
							
							if (res2.data.successed == true) {
								//console.log(res2.data.data);
								var _typelist=[];
								for(var i=0;i<res2.data.data.length;i++){
									var model=res2.data.data[i];								
									var child=[];
									var _type={};
									_type.Id=model.Id;
									_type.Name=model.Name;
									for(var j=0;j<model.children.length;j++){
										var model1=model.children[j];
										var child1=[];
										var _type1={};
										_type1.Id=model1.Id;
										_type1.Name=model1.Name;
										for(var s=0;s<model1.children.length;s++){
											var model2=model1.children[s];
											var child2=[];
											var _type2={};
											_type2.Id=model2.Id;
											_type2.Name=model2.Name;
											
											_type2.children=child2;
											child1.push(_type2);									
										}
										_type1.children=child1;
										child.push(_type1);
									}
									
									_type.children=child;
									_typelist.push(_type);
								}
								self.treelist= _typelist;
								setTimeout(function () {
								  uni.hideNavigationBarLoading();
								}, 1000);
								//this.model = res.data.model;
							}
						},
						fail: () => {
					
							uni.showToast({
								icon: 'none',
								title: '网络异常,请稍后重试'
							});
						}
					});
					
				},
				loadDepartment(){
					self=this;
					uni.showNavigationBarLoading();
					uni.request({
						url:uni.getStorageSync("localurl")+'//Common/TreeSelector', //仅为示例，并非真实接口地址。
						data: {
							_Type: "AmsDepartments",
						},
						success: res2 => {
							if (res2.data.successed == true) {
								self.treelist= res2.data.data;
								setTimeout(function () {
								  uni.hideNavigationBarLoading();
								}, 2000);
								
								//this.model = res.data.model;
							}
						},
						fail: () => {
							uni.hideNavigationBarLoading();
							uni.showToast({
								icon: 'none',
								title: '网络异常,请稍后重试'
							});
						}
					});
				},
				loadglbmProfile(){
					self=this;
								
					uni.showNavigationBarLoading();
				
					self.request_tool({
						url:'/console/app/v1/operator/pageData',
						type:'POST',
						data:{"orgId":self.inputglbmid,"current":0,"pageSize":100}
					}).then(res => {
							console.error(res);
							if(res!=undefined){
							if (res.data.code == 2000) {
								console.log(res.data.data);
								//self.treelist= res.data.data;
								let newtreelist=[];
								for(var i=0;i<res.data.data.records.length;i++){
									let resitem= res.data.data.records[i];
									let treeitem={
										id:resitem.id,
										label:resitem.userName,
										isEnabled:resitem.isEnabled,
										checked:false,
										children:[],
									};
									newtreelist.push(treeitem);
								}
								self.treelist=newtreelist;
								setTimeout(function () {
								  uni.hideNavigationBarLoading();
								}, 2000);
								this.$refs.tkitree.oldtreeList="";
								this.$refs.tkitree.servalue="";
								this.showTree();
								//this.model = res.data.model;
							}else{
								uni.showToast({
									icon: 'none',
									title: res.data.msg
								});							
							}
							}
							}).catch(err => {
					  console.error(err);
					  
					});
					
					
				},
				isanselectAsset(e){
					self=this;
					if(e.currentTarget.dataset.ucode!=""){
						uni.showToast({
							icon: 'none',
							title: '该资产已被单据['+e.currentTarget.dataset.ucode+']预约'
						});
						e.checked=false;
					}else{
					if(self.deleteids.indexOf(e.currentTarget.dataset.id)>-1){
						if(self.deleteids==e.currentTarget.dataset.id){
							self.deleteids="";
						}else{
							self.deleteids=self.deleteids.replace(e.currentTarget.dataset.id+",","");
						}
						}else{
							if(self.deleteids==""){
								self.deleteids=e.currentTarget.dataset.id;
							}else{
								self.deleteids=self.deleteids+","+e.currentTarget.dataset.id;
							}
						
							}
					}
				},
				isanselectAssetNo(e){
					self=this;
					if(e.currentTarget.dataset.ucode!=""){
						uni.showToast({
							icon: 'none',
							title: '该资产已被单据['+e.currentTarget.dataset.ucode+']预约'
						});
						
					}else{
				
					}
				},
				loadsybmProfile(){
					self=this;
					uni.showNavigationBarLoading();
					self.request_tool({
						url:'/console/app/v1/operator/pageData',
						type:'POST',
						data:{"orgId":self.inputsybmid,"current":0,"pageSize":100}
					}).then(res => {
							console.error(res);
							if(res!=undefined){
							if (res.data.code == 2000) {
								console.log(res.data.data);
								//self.treelist= res.data.data;
								let newtreelist=[];
								for(var i=0;i<res.data.data.records.length;i++){
									let resitem= res.data.data.records[i];
									let treeitem={
										id:resitem.id,
										label:resitem.userName,
										isEnabled:resitem.isEnabled,
										checked:false,
										children:[],
									};
									newtreelist.push(treeitem);
								}
								self.treelist=newtreelist;
								setTimeout(function () {
								  uni.hideNavigationBarLoading();
								}, 2000);
								this.$refs.tkitree.oldtreeList="";
								this.$refs.tkitree.servalue="";
								this.showTree();
								//this.model = res.data.model;
							}else{
								uni.showToast({
									icon: 'none',
									title: res.data.msg
								});							
							}
							}
							}).catch(err => {
					  console.error(err);
					  
					});
					
				}
					
				},
		onLoad(options) {
			//首先将实例指针保存到全局变量 self 方便在异步请求中访问实例本身
			self = this;
			if(options.DocumentId){
				self.DocumentId=options.DocumentId;
			}
			if(options.DocumentCode){
				self.DocumentCode=options.DocumentCode;
			}
			if(options.MoveinDeaprtmentId){
				self.MoveinDeaprtmentId=options.MoveinDeaprtmentId;
			}
			if(options.MoveinMenId){
				self.MoveinMenId=options.MoveinMenId;
			}
			if(options.RefDate){
				self.RefDate=options.RefDate;
			}
			console.log(self.DocumentCode);
			uni.getStorage({
				key: 'userinfo',
				success: function(newres) {
					const listdata = newres.data;
					self.loginName = listdata.LoginName;
				}
			});
			//this.queryasset();
		
		
		}
		
	}
</script>

<style>
	.item-icon-sys {
		width: 40upx;
		height: 40upx;
	}
.scroll-view_H{
		background-color: #edf1f4;
		padding-left: 10px;
		padding-right: 10px;
	}
	.Item {
		border: 1px solid #e6e6e6;
		overflow: hidden;
		padding-bottom: 16rpx;
		border-radius: 16rpx;
		background: #fff;
		margin-top: 10rpx;
	}
	
	.item-text .span {
		display: inline-block;
		width: 67%;
		float: right;
	}
	
	.item-text .ispan {
		font-style: normal;
		width: 30%;
		display: inline-block;
	}
	
	.item-content {
		padding-left: 0;
	}
	
	.item-title .ispan {
		font-size: 30rpx;
		width: auto;
		height: auto;
	}
	
	.item-title {
		font-size: 40rpx;
		color: #454545;
		width: 100%;
	}
	
	.item-title-row {
		background-image: none;
		padding-right: 0px;
	}
	
	.item-link .item-inner {
		padding-right: 0;
	}
	.item-text {
		font-size: 30rpx;
		color: #454545;
		margin: 20rpx 0;
		padding-left: 20rpx;
		line-height: 1.2;
	}
	
	.box{
		width: 600rpx;border-bottom: 1px #CCCCCC solid;
		height: 80rpx;
		line-height: 80rpx;
	}
	.box .popupspan{
		width: 36.5%;display: inline-block;height: 80rpx;
		line-height: 80rpx;
		padding-left: 3.5%;
		color: #5a5a5a;
	}
	.box .popupinput{
		width: 52%;text-align: right;display: inline-block;height: 80rpx;line-height: 80rpx;
		padding-right: 30rpx;
		float: right;
	}
	.box .popupinput input{	
		height: 100%;line-height: 100%;
		font-size: 30rpx;
	}
	.inputff{
			color: #BEBEBE;
			font-size:30rpx;
		}
		.box .popupinput{
			font-size:30rpx;
			}
			
			.ispancheck{
				transform:scale(0.7);
				border-color: "#6D8AF9";
				color: "#32cacb";
			}
			.ispancheck:hover{
				transform:scale(0.7);
				border-color: "#6D8AF9";
			}
			.nocheck{
				background-color: "#f3f3f3" !important;
				color: "#f3f3f3" !important;
			}
</style>
